package studychinese.activity;

import android.content.Intent;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.hschinese.pronunciation.R;

import studychinese.model.UserBean;


public class MessageActivity extends BaseAcitivity implements View.OnClickListener {
    /*
    *
    * 初始化控件
    * */
    private ImageView bacakmess;
    private RelativeLayout setPassmess;
    private RelativeLayout setNames;
    private TextView name;

//    @Override
//    protected void onCreate(Bundle savedInstanceState) {
//        super.onCreate(savedInstanceState);
//        setContentView(R.layout.activity_message);
//        initView();
//    }

    @Override
    protected int setContainer()
    {
        return R.layout.activity_message;
    }

    @Override
    public void innitView()
    {
        bacakmess = (ImageView) findViewById(R.id.iv_message_back);
        setPassmess = (RelativeLayout) findViewById(R.id.rl_message_setpas);
        setNames  = (RelativeLayout) findViewById(R.id.rl_message_setname);
        name = (TextView) findViewById(R.id.tv_mes_name);
        bacakmess.setOnClickListener(this);
        setPassmess.setOnClickListener(this);
        setNames.setOnClickListener(this);
        name.setText(UserBean.getInfor().getUser_name());

    }
    @Override
    public void onClick(View v)
    {
        switch (v.getId())
        {
            case R.id.iv_message_back:
                finish();
                break;
            case R.id.rl_message_setpas:
                startActivity(new Intent(MessageActivity.this,SetPassActivity.class));
                break;
            case R.id.rl_message_setname:

                break;
        }
    }
}
